package com.tms.springboot.controller;


import com.tms.springboot.base.pojo.PdGoodsType;
import com.tms.springboot.oms.pojo.PdOrder;
import com.tms.springboot.result.JsonResult;
import com.tms.springboot.result.ResultCode;
import com.tms.springboot.result.ResultTool;
import com.tms.springboot.service.PdGoodsTypeService;
import com.tms.springboot.utils.UUId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 货物类型表 前端控制器
 * </p>
 *
 * @author cjj
 * @since 2023-06-14
 */
@RestController
@RequestMapping("/pd-goods-type")
public class PdGoodsTypeController {

    @Autowired
    PdGoodsTypeService pdGoodsTypeService;

    //查询所有物品类型
    @RequestMapping("/queryall")
    public JsonResult queryall() {
        List<PdGoodsType> list=pdGoodsTypeService.list();
        return ResultTool.success(ResultCode.SUCCESS, list);
    }
}
